import com.Lyyf.Config.SpringConfig;
import com.Lyyf.Entity.Flower;
import com.Lyyf.Service.FlowerService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class FText {
    @Test
    public void T1() {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        FlowerService bean = context.getBean(FlowerService.class);
        List<Flower> flowers = bean.SelectFlowerAll();
        System.out.println(flowers);
    }
}
